COPY.RUN Function

Syntax

Code_Text as C = copy.run(C layoutname [,C filter [,C order [,L silent [,L show_Xbasic [,* arguments ]]]]])

Arguments

Code_Text

The Xbasic code that was run performing the operation.

layoutname

The name of a previously created copy operation.

filter

Optional. Default = "". A character filter expression that evaluates to a logical value and selects records to copy.

order

Optional. Default = record order. A character order expression that sorts selected records.

silent

Optional. Default = .F. .T. = No user interaction. .F. = User interaction.

show_Xbasic

Optional. Default = .F.

arguments

*

Description

Runs a Copy operation

Discussion

The COPY.RUN() method exports data using a previously defined copy operation. The method is not thread safe, which means that it cannot be run on an A5W page. If the Silent flag is set to .T., then Alpha Five does not display any confirmation dialog boxes before running the operation. Note : If you specify an optional filter argument, the filter is applied in addition to any filter that may have been defined as Part of the Operation. (You can check to see if a filter is defined as Part of an Operation by editing the saved operation, and selecting the "Select records" menu item.)

Example

The following example runs the Copy Customer operation.

copy.run("Copy Customer", "Lastname

Limitations

Desktop applications only.

See Also